import request from "@/utils/request.js";



export const initiateApproval = (applicantId,processId,formData) => {
    const requestBody = {
        processId,
        formData,
        applicantId
    };
    return request.put('/commonProcess/initiateApproval',requestBody,
        { headers: { 'Content-Type': 'application/json' } } );
};

export const getHisRecords = (id,name,status,type,pageNo,pageSize) => {
    const requestBody ={
        id:id,
        name:name,
        status : status,
        type : type,
        pageNo,
        pageSize
    };
    return request.put('/commonProcess/getHisRecords',requestBody,
        { headers: { 'Content-Type': 'application/json' } });
};